package com.bdqn.vueboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.models.auth.In;
import lombok.Data;

/**
 * 登录日志
 * @TableName loginlog
 */
@TableName(value ="loginlog")
@Data
public class Loginlog implements Serializable {
    /**
     * 登录日志id
     */
    @TableId
    private String loginlogId;

    /**
     * 操作者
     */
    private Long loginlogUsrid;

    /**
     * 登录时间
     */
    private LocalDateTime loginlogDate;

    /**
     * 描述
     */
    private String loginlogDescribe;


    /**
     * 成功还是失败
     */
    private Integer loginLogSof;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Loginlog other = (Loginlog) that;
        return (this.getLoginlogId() == null ? other.getLoginlogId() == null : this.getLoginlogId().equals(other.getLoginlogId()))
            && (this.getLoginlogUsrid() == null ? other.getLoginlogUsrid() == null : this.getLoginlogUsrid().equals(other.getLoginlogUsrid()))
            && (this.getLoginlogDate() == null ? other.getLoginlogDate() == null : this.getLoginlogDate().equals(other.getLoginlogDate()))
            && (this.getLoginlogDescribe() == null ? other.getLoginlogDescribe() == null : this.getLoginlogDescribe().equals(other.getLoginlogDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLoginlogId() == null) ? 0 : getLoginlogId().hashCode());
        result = prime * result + ((getLoginlogUsrid() == null) ? 0 : getLoginlogUsrid().hashCode());
        result = prime * result + ((getLoginlogDate() == null) ? 0 : getLoginlogDate().hashCode());
        result = prime * result + ((getLoginlogDescribe() == null) ? 0 : getLoginlogDescribe().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", loginlogId=").append(loginlogId);
        sb.append(", loginlogUsrid=").append(loginlogUsrid);
        sb.append(", loginlogDate=").append(loginlogDate);
        sb.append(", loginlogDescribe=").append(loginlogDescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
